PageSetup Object

The PageSetup Object provides properties for retrieving information and setting options for page setup in a report (that is, paper size, margins, etc.) for the current printer. A PageSetup Object is obtained from the PageSetup property of the Report Object. If the current printer is changed with the ReportObject SelectPrinter method, then the values in PageSetup Object properties may change.

PageSetup Object Properties

Property Description Read/Write

Application

Returns a reference to the Application Object, that this object is associated with.

Read only

BottomMargin

Returns/Sets value specifying the bottom margin, in twips. See Remarks below.

Read/Write

LeftMargin

Returns/Sets value specifying the left margin, in twips. See Remarks below.

Read/Write

PaperOrientation

Returns/Sets CRPaperOrientation, using one of the following constants, indicating the paper orientation. See Remarks below.

Read/Write


Constant Value


crDefaultPaperOrientation (Read Only)

0


crLandscape

2


crPortrait

1

PaperSize

Returns/Sets CRPaperSize, using one of the following constants, indicating the paper size. Check your printer documentation for a list of paper sizes available for use with your printer. If you choose an unavailable paper size, the default (letter) size will be used. See Remarks below.

Read/Write


Constant Value


crDefaultPaperSize (Read Only)

0


crPaper10x14

16


crPaper11x17

17


crPaperA3

8


crPaperA4

9


crPaperA4Small

10


crPaperA5

11


crPaperB4

12


crPaperB5

13


crPaperCsheet

24


crPaperDsheet

25


crPaperEnvelope10

20


crPaperEnvelope11

21


crPaperEnvelope12

22


crPaperEnvelope14

23


crPaperEnvelope9

19


crPaperEnvelopeB4

33


crPaperEnvelopeB5

34


crPaperEnvelopeB6

35


crPaperEnvelopeC3

28


crPaperEnvelopeC4

29


crPaperEnvelopeC5

30


crPaperEnvelopeC6

31


crPaperEnvelopeC65

32


crPaperEnvelopeDL

27


crPaperEnvelopeItaly

36


crPaperEnvelopeMonarch

37


crPaperEnvelopePersonal

38


crPaperEsheet

26


crPaperExecutive

7


crPaperFanfoldLegalGerman

41


crPaperFanfoldStdGerman

40


crPaperFanfoldUS

39


crPaperFolio

14


crPaperLedger

4


crPaperLegal

5


crPaperLetter

1


crPaperLetterSmall

2


crPaperNote

18


crPaperQuarto

15


crPaperStatement

6


crPaperTabloid

3

Property Description Read/Write

Parent

Reference to the Parent object (Report Object).

Read only

Report

Reference to Report Object.

Read only

RightMargin

Returns/Sets value specifying the right margin, in twips. See Remarks below.

Read/Write

TopMargin

Returns/Sets value specifying the top margin, in twips. See Remarks below.

Read/Write

Remarks


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com